/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mobiubiq.directory.client.util;

/**
 *
 * @author Marnix Renne
 */
public abstract class DeviceSpecificFunction {
    public Object call(Object[] args) {
        String platform = PlatformCapabilities.getPlatform();
        if(platform.indexOf("6131") > -1) {
            return call6131(args);
        }
        if(platform.indexOf("S60") > -1) {
            return callS60(args);
        }
        throw new IllegalStateException("Unknown platform:\t" + platform);
    }
    
    public abstract Object call6131(Object[] args);
    
    public abstract Object callS60(Object[] args); 
}
